package com.atguigu.userprofile.app

import com.atguigu.userprofile.bean.{TagInfo, TaskInfo, TaskTagRule}
import com.atguigu.userprofile.dao.{TagInfoDao, TaskInfoDao, TaskTagRuleDao}

object TaskSqlApp {
  def main(args: Array[String]): Unit = {
    val taskId: String = args(0)
    val tagInfo: TagInfo = TagInfoDao.getTagInfoByTaskID(taskId)
    println(tagInfo)
    val taskInfo: TaskInfo = TaskInfoDao.getTaskInfoById(taskId)
    println(taskInfo)
    val taskTagRules: List[TaskTagRule] = TaskTagRuleDao.getTaskTagRuleList(taskId)
    println(taskTagRules)
  }
}
